package cn.tedu.forum.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户注册数据传输类
 *
 * @author DunJu Zhou
 */

@Data
@Accessors(chain = true)
public class RegisterDTO implements Serializable {

    @ApiModelProperty(value = "昵称", example = "u001", required = true)
    @NotNull(message = "注册失败，必须提交昵称！")
    private String nickname;

    @ApiModelProperty(value = "密码", example = "123456", required = true)
    @NotNull(message = "注册失败，必须提交密码！")
    private String password;

    @ApiModelProperty(value = "联系电话", example = "12345678901", required = true)
    @NotNull(message = "注册失败，必须提交联系电话！")
    private String phoneNumber;

}
